/*
 * @Author: anshengtyp
 * @Date: 2024-03-07 10:18:42
 * @LastEditTime: 2024-08-07 10:01:47
 * @LastEditors: anshengtyp 1815634838@qq.com
 * @Description: 
 */
import request from '@/utils/request'
export function getGatherList(params) {
  return request({
    url: '/picture/group/list',
    method: 'get',
    params
  })
}

export function addGather(data) {
  return request({
    url: '/picture/group',
    method: 'post',
    data
  })
}

// 批量添加
export function addFolderBatchAdd(data) {
  return request({
    url: '/picture/group/folderBatchAdd',
    method: 'post',
    data
  })
}


export function updateGather(data) {
  return request({
    url: `/picture/group`,
    method: 'put',
    data
  })
}
// 单个删除
export function deleteGather(id, deleteGathers) {
  return request({
    url: `/picture/group/${id}?includePicture=${deleteGathers}`,
    method: 'delete',
  })
}
// 批量删除
export function deleteGathers(id, deleteGathers) {
  return request({
    url: `/picture/group/batch/${id}?includePicture=${deleteGathers}`,
    method: 'delete',
  })
}

export function getGatherDetails(id) {
  return request({
    url: `/picture/group/${id}`,
    method: 'get',
  })
}
